package com.linkhub.oms.data.sync.api.wms.domain.dto;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @author Jaycle
 * @version 1.0.0
 * @Description WmsCancelOrderDTO.java
 * @createTime 2024/06/16 11:33
 */
@NoArgsConstructor
@Data
public class WmsCancelOrderDTO implements Serializable {

    /**
     * OMS生成唯一ID
     */
    @JSONField(name = "outBizCode")
    private String outBizCode;

    /**
     * orders
     */
    @JSONField(name = "orders")
    private List<Order> orders;

    @NoArgsConstructor
    @Data
    public static class Order {
        /**
         * warehouseCode
         */
        @JSONField(name = "warehouseCode")
        private String warehouseCode;

        /**
         * ownerCode
         */
        @JSONField(name = "ownerCode")
        private String ownerCode;

        /**
         * OMS订单号/提货单号
         */
        @JSONField(name = "orderCode")
        private String orderCode;

        /**
         * WMS返回的单据ID，目前是必填
         */
        @JSONField(name = "orderId")
        private String orderId;

        /**
         * cancelType
         */
        @JSONField(name = "cancelType")
        private String cancelType;
    }
}
